import React from 'react';

import styles from './index.less';

interface IProps {
  visible: boolean
}


const ModalNull: React.FC<IProps> = (props) => {

  const { children, visible } = props;
  if (!visible) {
    return null;
  }
  return (
    <div className={styles.modalBox}>
      <div className={styles.content}>
        {children}
      </div>
    </div>
  );
};
export default ModalNull;
